package com.xzg.erp.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xzg.erp.common.BaseEntity;

import java.io.Serializable;

import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 产品标签表
 * </p>
 *
 * @author qwc
 * @since 2025-02-12
 */
@Getter
@Setter
@ToString
@TableName("product_tag")
public class ProductTag extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品标签名称
     */
    @TableField("name")
    @NotBlank(message = "请填写标签名称")
    private String name;
}
